import request from '@/utils/request'

// 创建检测日志
export function createCheckData(data) {
  return request({
    url: '/market/check-data/create',
    method: 'post',
    data: data
  })
}

// 更新检测日志
export function updateCheckData(data) {
  return request({
    url: '/market/check-data/update',
    method: 'put',
    data: data
  })
}

// 删除检测日志
export function deleteCheckData(id) {
  return request({
    url: '/market/check-data/delete?id=' + id,
    method: 'delete'
  })
}

// 获得检测日志
export function getCheckData(id) {
  return request({
    url: '/market/check-data/get?id=' + id,
    method: 'get'
  })
}

// 获得检测日志分页
export function getCheckDataPage(params) {
  return request({
    url: '/market/check-data/page',
    method: 'get',
    params
  })
}
// 导出检测日志 Excel
export function exportCheckDataExcel(params) {
  return request({
    url: '/market/check-data/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}